<%-- 
    Document   : Viewhistory
    Created on : Jul 11, 2011, 10:17:47 PM
    Author     : Hai
--%>

<%@page import="server.entity.AdminLog"%>
<%@page import="server.process.ProcessBeanLocal"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="javax.naming.Context"%>
<jsp:include page="adminheader.jsp"></jsp:include>
            <div id="main">
                <div id="adminManager">
                    <jsp:include page="lefmenu.jsp"></jsp:include>
                </div>
                <div id="contentAdmin">
                    <fieldset>
                        <legend>View History</legend>
                        <form action="">
                            <h4>
                                <table border="0">
                                    <tbody>
                                        <%
                                        Context ctx=new InitialContext();
                                        Object obj=ctx.lookup("ProcessLocalJNDI");
                                        ProcessBeanLocal local=(ProcessBeanLocal)obj;
                                        AdminLog[] result=local.ShowAllAdminLog();
                                        for(int i=result.length-1;i>=0;i--){

                                        %>
                                        <tr>

                                            <td><%=result[i].getDate()%></td>
                                            <td><%=result[i].getAction()%></td>
                                        </tr>
                                       
                                        <%
                                        }%>
                                    </tbody>
                                </table>



                            </h4>
                        </form>
                    </fieldset>
                </div>
            </div>
            <div id="footer">

            </div>
        </div>
    </body>
</html>
